package com.hospital;

import com.hospital.config.MyBatisNameGenerator;
import com.hospital.config.UniqueNameGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = "com.hospital.*.*.dao", nameGenerator = MyBatisNameGenerator.class)
@ComponentScan(nameGenerator = UniqueNameGenerator.class)
@EnableScheduling
public class HospitalApplication {
    public static void main(String[] args) {
        SpringApplication.run(HospitalApplication.class, args);
    }
}
